/*Copyright (c) 2021 Tyrael, Y. LI*/
:root {
    color-scheme: light dark;
    /*    for safari popup page. */
}

body {
    background: #fff;
    width: 300px;
    height: 400px;
    font-family: system-ui, "PingFang SC", STHeiti, sans-serif;
}

hr {
    width: 90%;
    height: 1px;
    margin-top: 10px;
    border: none;
}

select {
    padding: 0 2%;
    border: 0;
    border-bottom: 2px solid #fb7299;
    scrollbar-width: thin;
    outline: none !important;
    transition: 0.4s;
    -webkit-transition: 0.4s;
}

select::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

select::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background-color: #aaa;
}

option {
    text-align: center;
}

.dropbox {
    width: 40px;
    position: absolute;
    right: -4px;
    top: 12px;
}

.bottom {
    background: #fff;
    text-align: center;
    width: 300px;
    height: 20px;
    position: absolute;
    bottom: 0;
    z-index: 50;
}

.bottom-item {
    cursor: pointer;
    position: relative;
    float: left;
    margin: 0 5px;
}

.button-host {
    position: relative;
    float: left;
    width: 100px;
    height: 40px;
    margin: 0 10px;
}

.button-host span {
    font-size: 14px;
    left: 0;
    top: 12px;
}

.button-host section {
    right: 0;
    position: absolute;
}

.button:disabled {
    opacity: 0.5;
}

.host {
    margin-top: 25px;
    text-align: center;
}

.setting {
    overflow-y: scroll;
    overflow-x: hidden;
    height: 185px;
    scrollbar-width: thin;
}

.setting::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.setting::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background-color: #aaa;
}

.tooltip {
    position: absolute;
    display: inline-block;
    cursor: help;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 250px;
    background-color: #000;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    top: 150%;
    left: 50%;
    position: absolute;
    z-index: 10;
}

.tooltiptext-top {
    top: unset !important;
    bottom: 150% !important;
}

.tooltiptext-top::after {
    top: 100% !important;
    bottom: unset !important;
    border-color: black transparent transparent transparent !important;
}

.tooltip .tooltiptext::after {
    content: " ";
    position: absolute;
    bottom: 100%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent black transparent;
}

.tooltip .tooltiptext-middle {
    margin-left: -150px;
}

.tooltip .tooltiptext-left {
    margin-left: -50px;
}

.tooltip .tooltiptext-right {
    margin-left: -170px;
}

.tooltip .tooltiptext-middle::after {
    left: 60%;
}

.tooltip .tooltiptext-left::after {
    left: 20%;
}

.tooltip .tooltiptext-right::after {
    left: 68%;
}

.tooltip .tooltiptext {
    opacity: 0;
    transition: opacity 0.5s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 75%;
}

.right-arrow {
    fill: #06c;
    position: absolute;
    top: 0;
}

.setting-title {
    font-size: 16px;
    padding-top: 10px;
    padding-left: 25px;
    user-select: none
}

.qn-i {
    height: 18px;
    line-height: 20px;
    font-size: 14px;
    user-select: none;
}

#btn2 span {
    right: 25px;
}

#logo {
    width: 175px;
    height: 175px;
    cursor: pointer;
    margin: -30px;
}

#version {
    display: inline-block;
    cursor: pointer;
}

#btn7 {
    overflow: hidden;
    cursor: pointer;
}

#btn7 input {
    margin: 5px 15px;
}

#btn7 span {
    position: absolute;
    font-size: 15px;
    height: 20px;
    line-height: 20px;
    color: #fd749b;
    user-select: none;

}

#qn-items {
    position: absolute;
    width: 100px;
}

#github-icon {
    fill: #000;
}

.a-link {
    text-decoration: none;
    color: #06c;
    margin-left: 15px;
    font-size: 14px;
    cursor:pointer;
}

.a-link:hover {
    text-decoration: underline;
}

.liveroom-entry{
    position: absolute;
    top: 15px;
    right: 15px;
}

@media (prefers-color-scheme: dark) {
    body {
        background: #292a2d;
        color: #fff;
    }

    .dropbox select {
        background: #292a2d;
        color: #fff;
        border-color: #23ade5;
    }

    .bottom {
        background: #292a2d;
    }

    .button .checkbox input:checked + label {
        background: #23ade5 !important;
    }

    .button .checkbox input:checked + label:after {
        background: #26afe9 !important;
    }

    .right-arrow {
        fill: #2997ff;
    }

    #btn7 span {
        color: #23ade5 !important;
    }

    #github-icon {
        fill: #fff;
    }

    .a-link {
        color: #2997ff;
    }

    :root {
        --bubble: #fff;
    }
}